package com.china08.yxyapi.entity.db.questionbank;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * 
 * 题库: 学科信息
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_quesbank_subject", catalog = "yxy_question_bank")
public class YxyQuesbankSubject extends BaseEntityNoId {

    /** 科目Id 2: 语文 3: 数学 4:英语 */
    @Id
    @Column(columnDefinition = "varchar(32) comment '科目Id 2: 语文 3: 数学 4:英语' ")
    private String id;

    /** 科目名称 */
    @Column(nullable = false, columnDefinition = "varchar(32) comment '科目名称' ")
    private String name;

    /** 状态 */
    @Column(nullable = false, columnDefinition = "int default 1 comment '状态:0--未启用,1--启用' ")
    private Integer status;

    @Column
    private Integer orderNum;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     *            the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the orderNum
     */
    public Integer getOrderNum() {
        return orderNum;
    }

    /**
     * @param orderNum
     *            the orderNum to set
     */
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

}
